package com.material.vtool.service;

import cn.binarywang.wx.miniapp.bean.WxMaUserInfo;
import com.material.vtool.entity.BUserInfoEntity;
import com.material.vtool.entity.combinedEntity.CombinedCommonArticleEntity;
import com.material.vtool.entity.combinedEntity.CombinedUserDownloadMaterialEntity;
import com.material.vtool.entity.combinedEntity.CombinedUserShareMaterialEntity;

import java.util.List;

public interface UserInfoService {
    BUserInfoEntity getUserInfoByUserId(String userId);

    int updateUserInfo(BUserInfoEntity entity);

    String getUserOpenId(int userId);

    Integer getUserIdByOpenId(String openId);

    int addWxUserInfo(BUserInfoEntity entity);

    /**
     * 修改用户信息
     * @param entity
     * @return
     */
    int modifyWxUserInfo(BUserInfoEntity entity);

    List<CombinedUserShareMaterialEntity> getUserShareList(Integer pageNum, Integer pageSize, Integer userId);

    int getUserShareListTotal(Integer userId);

    List<CombinedUserDownloadMaterialEntity> getUserDownloadList(Integer pageNum, Integer pageSize, Integer userId);

    int getUserDownloadListTotal(Integer userId);
}
